body{
    height: 100%;
    font: 400 16px/1.5 PingFangSC-regular,Tahoma,"Lucida Grande",Verdana,"Microsoft Yahei",STXihei,hei;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: none;
    -moz-user-select: none;
    max-width: 540px;
    margin: 0 auto;
    background: #fafafc;
    padding: 0;
    color: #000;
    }
    /* 搜索模块 */
.search-index{
    display: flex;
     /* 固定定位和父级没有关系，它以屏幕为准 */
    position: fixed;
    top: 0;
    left: 50%; 
    /* 固定的盒子应该有宽度 */
    -webkit-transform: translateX(-50%); /*兼容谷歌低版本浏览器 */
    transform: translateX(-50%); /*可以实现水平居中*/
    width: 100%;
    min-width: 320px;
    max-width: 540px;
    height: 44px;
    background-color:#f6f6f6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    }
a{
    text-decoration: none; /*去掉下划线*/
    color: #222;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none; /*去掉小点*/
}
div{
    box-sizing: border-box; /*新知识点，自己查一下*/
} 
.search{
    /* position: relative; */
    flex: 1;
    height: 26px;
    border:1px solid #ccc;
    margin: 7px 10px;
    border-radius: 5px;
    /*文字设置 */
    font-size: 12px;
    color: #666;
    line-height: 24px;/*因为是Css3盒子模型，需要去除边框得大小*/
    padding-left: 30px;
    box-shadow: 1px 2px 4px rgba(0,0, 0, .2);
}
.search::before{
    /* 子决父相，找到search */
        position: absolute;/*加了绝对定位后，盒子直接有大小了，不需要转为块级元素*/
        top: 0;
        left: 0;
        width: 35px;
        height: 100%;
        background: url(../images/sprite.png) 15px 7px no-repeat;
        background-size: auto;
        background-size: 21px auto;
        content: "";
        margin: 5px; 
}
.user{
    width: 44px;
    height: 44px;
    /* background-color:purple; */
    font-size: 12px;
    text-align: center;
    color: #000;
}
.user::before{
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: url(../images/sprite.png) 1px -77px no-repeat;
    background-position-x: 1px;
    background-position-y: -77px;
    background-size: auto;
    background-size: 21px auto;
    margin: 6px auto -2px;
}
/* focus */
.foucs img{ 
    min-width: 320px;
    max-width: 540px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/foucus.jpg);
    z-index: 10;
    }
/* 局部导航栏 */
.nav-local {
    /* position: absolute;
    bottom: -20px;
    min-width: 320px;
    max-width: 520px; */
    width: 100%;
    display: flex; 
    height: 64px;
    /* margin: -70px 12px 10px; */
    border-radius: 8px;
    background-color: #fff;
    z-index: 11;
}

.nav-local li{
    flex: 1;
}
.nav-local a{
    display: flex;
    flex-direction: column;
    /* 因为是单行 */
    align-items: center;
    font-size: 12px;
}
.local-nav-icon{
    width: 32px;
    height: 32px;
    background-color: yellow;
    margin-top: 8px;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
}
.local-nav-icon2{
    width: 32px;
    height: 32px;
    background-color: yellow;
    margin-top: 8px;
    background: url(../images/localnav_bg.png) no-repeat 0 -32px;
    background-size: 32px auto;
}
.local-nav-icon3{
    width: 32px;
    height: 32px;
    background-color: yellow;
    margin-top: 8px;
    background: url(../images/localnav_bg.png) no-repeat 0 -64px;
    background-size: 32px auto;
}
.local-nav-icon4{
    width: 32px;
    height: 32px;
    background-color: yellow;
    margin-top: 8px;
    background: url(../images/localnav_bg.png) no-repeat 0 -96px;
    background-size: 32px auto;
}
.local-nav-icon5{
    width: 32px;
    height: 32px;
    background-color: yellow;
    margin-top: 8px;
    background: url(../images/localnav_bg.png) no-repeat 0 -128px;
    background-size: 32px auto;
}
/* nav */
nav{
    overflow: hidden;/*为了切掉圆角*/
    border-radius: 8px;
    margin: 0 4px 3px;
}
.nav-common{
    display: flex;
    height: 88px;
    background-color: pink;    
    line-height: 88px;
    
}
/* 图片渐变色，一定要有前缀-webkit */
.nav-common:nth-child(1){
    background: -webkit-linear-gradient(left,#FA5A55,#FA994D);
}
.nav-common:nth-child(2){
    background: -webkit-linear-gradient(left,#4B90ED,#53bced);
}
.nav-common:nth-child(3){
    background: -webkit-linear-gradient(left,#34C2A9,#6CD559);
}
.nav-common:nth-child(1) .nav-items:nth-child(3){
    flex: 2;
}
.nav-common:nth-child(2){
    margin:3px 0;
}
.nav-items{
    flex: 1;
    /* flex-direction: column;
    align-items: center; */
    display: flex;
}
.nav-items a{
    flex: 1;
    color: #fff;
    font-size: 15px;
    text-align: center;
    text-shadow: 1px 1px rgba(0,0,0,.2);/*文字阴影*/
}
.nav-items:nth-child(-n+3){
    /* -n+2就是选择前两个元素 */
    border-right: 1px solid #fff;
}
.nav_first{
    border: 0;
    background: url(../images/hotel.png) no-repeat bottom center;
    background-size: 121px auto;
} 
.subnav{
    display: flex;
    border-radius: 8px;
    background-color: #fff;
    margin: 0 4px;
    flex-wrap: wrap; /*换行*/
    font-size: 12px;
    padding: 5px 0 ;
    box-shadow: 1px 2px 4px rgba(0,0, 0, .2);
    
}
.subnav li{
    /* 里面的子盒子可以写百分比，相对于父级来说 */
    flex: 20%;  
}
.subnav a{
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 利用属性选择器更换背景图片 */
.subnav a [class^="subnav-entry-icon"]{
    width: 23px;
    height: 23px;
    /* background-color: pink; */
    margin-top: 4px;   
}
.subnav-entry-icon1 {
    background: url(../images/subnav-bg.png) no-repeat 0 0;
    background-size: 23px auto;
}
.subnav-entry-icon2 {
    background: url(../images/subnav-bg.png) no-repeat 0 -21px;
    background-size: 23px auto;
}
.subnav-entry-icon3 {
    background: url(../images/subnav-bg.png) no-repeat 0 -51px;
    background-size: 23px auto;
}
.subnav-entry-icon4 {
    background: url(../images/subnav-bg.png) no-repeat 0 -81px;
    background-size: 23px auto;
}
.subnav-entry-icon5 {
    background: url(../images/subnav-bg.png) no-repeat 0 -107px;
    background-size: 23px auto;
}
.subnav-entry-icon6 {
    background: url(../images/subnav-bg.png) no-repeat 0 -133px;
    background-size: 23px auto;
}
.subnav-entry-icon7 {
    background: url(../images/subnav-bg.png) no-repeat 0 -162px;
    background-size: 23px auto;
}
.subnav-entry-icon8 {
    background: url(../images/subnav-bg.png) no-repeat 0 -189px;
    background-size: 23px auto;
}
.subnav-entry-icon9 {
    background: url(../images/subnav-bg.png) no-repeat 0 -212px;
    background-size: 23px auto;
}
.subnav-entry-icon10 {
    background: url(../images/subnav-bg.png) no-repeat 0 -239px;
    background-size: 23px auto;
}
/* sales-box */
.sales-box{
    border-top:1px solid #bbb;
    background-color: #fff;
    margin: 4px;
}
.sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}

.sales-hd h2 {
    position: relative;
    text-indent: -999px;
    overflow: hidden;
}

.sales-hd h2::after {
    position: absolute;
    top: 5px;
    left: 8px;
    content: "";
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px auto;
}

.more {
    position: absolute;
    right: 5px;
    top: 0px;
    /*渐变  */
    background: -webkit-linear-gradient(left, #FF506C, #FF6BC6);
    border-radius: 15px;
    padding: 3px 20px 3px 10px;
    color: #fff;
}

.more::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    /*下面3行是 > 符号的形成过程  */
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

.row {
    display: flex;
}

.row a {
    flex: 1;
    border-bottom: 1px solid #eee;
}

.row a:nth-child(1) {
    border-right: 1px solid #eee;
}

.row a img {
    width: 100%;
}